package com.tempjob.app.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tempjob.common.model.FullTimeJob;
import com.tempjob.common.model.TempJobInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 发布工作
 * @author hui
 * @Date 2024/11/4 15:58
 **/

@Data
@ApiModel("工作发布")
public class PublishJobDTO {

    @ApiModelProperty("id，更新传")
    private String id;

    @ApiModelProperty("工作类型:1零工2正式工3就业基地招聘")
    private Integer jobType;

    @ApiModelProperty("工作状态:0未上线1已上线2已下线3强制下线")
    private Integer jobStatus;

    @ApiModelProperty("工作分类")
    private String jobCategory;

    @ApiModelProperty("标题")
    private String jobTitle;

    @ApiModelProperty("学历要求")
    private String education;

    @ApiModelProperty("技能要求")
    private String skill;

    @ApiModelProperty("经验要求")
    private String experience;

    @ApiModelProperty("全职工作信息")
    private FullTimeJob fullTimeJob;

    @ApiModelProperty("零工工作信息")
    private TempJobInfo tempJobInfo;

    @ApiModelProperty("工作说明")
    private String jobContent;

    @ApiModelProperty("介绍图片")
    private List<String> descImages;

    @ApiModelProperty("待遇标签,提供住宿、无须经验等")
    private List<String> welfareTags;

    @ApiModelProperty("结算方式:1日结2月结")
    private Integer settlementType;

    @ApiModelProperty("ico")
    private String ico;

//    @CollectionField("location")
//    private Point location;

    @ApiModelProperty("经度")
    private Double longitude;

    @ApiModelProperty("纬度")
    private Double latitude;

    @ApiModelProperty("地址")
    private String jobAddress;

    @ApiModelProperty("联系电话")
    private String contactPhone;

    @ApiModelProperty("联系人")
    private String contactName;

    @ApiModelProperty("工作时间段开始")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date workOnTime;

    @ApiModelProperty("工作时间段结束")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date workOffTime;

    @ApiModelProperty("截止时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date deadline;

}
